package com.tanhua.dubbo.api;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.tanhua.model.domain.FreezeDetail;
import com.tanhua.model.domain.UserInfo;

import java.util.List;
import java.util.Map;

public interface UserInfoApi {
    void save(UserInfo userInfo);

    void update(UserInfo userInfo);

    UserInfo findById(Long userID);

    Map<Long, UserInfo> findByIds(List<Long> userIds);

    Page<UserInfo> findByPage(Integer page, Integer pagesize);

    Page<UserInfo> findFriendByPage(Page<UserInfo> pageInfo, List<Long> friendIds, String keyword);

    void freezeUser(FreezeDetail freezeDetail);

    List<UserInfo> getUsersByIds(List<Long> userIds);
}
